package com.core.family.admin.domain;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * @author honglei
 * @version 1.0
 * @time: 2024-6-17 14:49:09
 * @Description PO对象 操作员表
 */
@Data
@TableName(value = "tbl_uam_user")
public class UamUser implements Serializable {


    /*
     *  ID
     */
    @TableField(value = "id")
    private String id;

    /*
     *
     */
    @TableField(value = "serial_no")
    private String serialNo;

    /*
     *  VERSION
     */
    @TableField(value = "version")
    private Integer version;

    /*
     *  登录名
     */
    @TableField(value = "login_name")
    private String loginName;

    /*
     *  登录密码
     */
    @TableField(value = "login_pwd")
    private String loginPwd;

    /*
     *  盐,用于shiro加密, 字段停用
     */
    @TableField(value = "salt")
    private String salt;

    /*
     *  工号
     */
    @TableField(value = "user_code")
    private String userCode;

    /*
     *  姓名
     */
    @TableField(value = "user_name")
    private String userName;

    /*
     *  手机号
     */
    @TableField(value = "mobile_no")
    private String mobileNo;

    /*
     *  状态
     */
    @TableField(value = "status")
    private String status;

    /*
     *  用户来源
     */
    @TableField(value = "user_source")
    private String userSource;

    /*
     *  操作员类型（2000伙伴，3000客户，1000运营）
     */
    @TableField(value = "type")
    private String type;

    /*
     *  最后登录IP地址
     */
    @TableField(value = "last_login_ip")
    private String lastLoginIp;

    /*
     *  描述
     */
    @TableField(value = "remark")
    private String remark;

    /*
     *  0 - 允许; 1 - 拒绝
     */
    @TableField(value = "push_car_status")
    private Integer pushCarStatus;

    /*
     *  最后登录时间
     */
    @TableField(value = "last_login_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastLoginTime;

    /*
     *  是否更改过密码
     */
    @TableField(value = "is_changed_pwd")
    private Integer isChangedPwd;

    /*
     *  连续输错密码次数（连续5次输错就冻结帐号）
     */
    @TableField(value = "pwd_error_count")
    private Integer pwdErrorCount;

    /*
     *  最后输错密码时间
     */
    @TableField(value = "pwd_error_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date pwdErrorTime;

    /*
     *  平台标识(1-IOS, 2-安卓)
     */
    @TableField(value = "platform")
    private String platform;

    /*
     *  运营工作台状态
     */
    @TableField(value = "operation_status")
    private String operationStatus;

    /*
     *  客户工作台状态
     */
    @TableField(value = "customer_status")
    private String customerStatus;

    /*
     *  伙伴工作台状态
     */
    @TableField(value = "partner_status")
    private String partnerStatus;

    /*
     *  用户头像关联流水号
     */
    @TableField(value = "photo_ref_no")
    private String photoRefNo;

    /*
     *  创建人
     */
    @TableField(value = "creator")
    private String creator;

    /*
     *  创建人ID
     */
    @TableField(value = "creator_id")
    private String creatorId;

    /*
     *  创建时间
     */
    @TableField(value = "created_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;

    /*
     *  最近操作人
     */
    @TableField(value = "last_operator")
    private String lastOperator;

    /*
     *  最后操作人ID
     */
    @TableField(value = "last_operator_id")
    private String lastOperatorId;

    /*
     *  更新时间
     */
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /*
     *  是否删除 0未删除 1已删除
     */
    @TableField(value = "yn")
    private Integer yn;

}
